<template>
  <page-layout>
  <a-card :bordered="false">
    <!-- 查询区域
    <div>
      <a-form @keyup.enter.native="searchQuery">
        <a-row :gutter="24">
          <a-col :md="6" :sm="8">
            <a-form-item>
              <a-button type="primary" @click="searchQuery()" icon="search">查询</a-button>
            </a-form-item>
          </a-col>
        </a-row>
      </a-form>
    </div>-->

    <!-- table区域-begin -->
    <div>
      <vxe-grid
        id="contactTop10"
        keep-source
        ref="vxeTable"
        :height="null"
        v-bind="options"
        @checkbox-change="onSelectChange"
        @checkbox-all="onSelectChange"
        @page-change="handlePageChange"
      >

    </vxe-grid>
    </div>
    <!-- table区域-end -->
  </a-card>
  </page-layout>
</template>

<script>
import PageLayout from '@/layouts/PageLayout'
import { VxeTableMixin } from '@/mixins/VxeTableMixin'

export default {
  name: "contactTop10List",
  components: {
    PageLayout
  },
  mixins: [VxeTableMixin],
  data() {
    return {
      columns: [
        {
          type: 'seq',
          width: 60,
          field: 'seq'
        },
        {
          title: '客户名称',
          field: 'customerName'
        },
        {
          title: '合同签订金额',
          field: 'money'
        }
      ],
      url: {
        list: '/report/contacttop10',
      },
      // 查询参数
      queryParam: {},
      selectedRowKeys: [],
      selectedRows: [],
      toggleSearchStatus: false,
      customTableToolbar: {
        buttons: [
        ]
      }
    }
  },
  computed: {
    importExcelUrl: function() {
      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
    },
    rowSelection() {
      return {
        selectedRowKeys: this.selectedRowKeys,
        onChange: this.onSelectChange
      }
    }
  },
  created() {
  },
  methods: {
  }
}
</script>
